{% extends "admin/base_site.html" %}
{% load i18n %}

{% block breadcrumbs %}
    <div class="breadcrumbs">
      <a href="../../">
        {% trans "Home" %}
      </a>
       &rsaquo;
       <a href="../">
         {{ title }}
      </a>
      &rsaquo;
      Sessions
    </div>
{% endblock %}

{% block content %}
<div id="content-main">
  <div class="module">
    <table summary="Sessions">
      <tbody>
        <tr>
          <th>Session Key</th>
          <th>Session User</th>
          <th>Expire date</th>
          <th>Session Data</th>
        </tr>
          {% for session in sessions.object_list %}
            <tr>
                <td><a href="{% url hyperlog_show_single_session session.session_key %}">{{ session.session_key }}</a></td>
                <td>{{ session.hyperlog_get_user }}</td>
                <td>{{ session.expire_date }}</td>
                <td>{{ session.get_decoded }}</td>
            </tr>
          {% endfor %}
      </tbody>
    </table>
    <div class="pagination"><span class="step-links">
        {% if sessions.has_previous %}
            <a href="?page={{ sessions.previous_page_number }}">previous</a>
        {% endif %}
        <span class="current">
            Page {{ sessions.number }} of {{ sessions.paginator.num_pages }}.
        </span>
        {% if sessions.has_next %}
            <a href="?page={{ sessions.next_page_number }}">next</a>
        {% endif %}
    </span></div>
  </div>
</div>
{% endblock %}
        
{% block sidebar %}
{% endblock %}
